# coding=utf8
# 全世界最帅的帅哥
from flask import Blueprint
from flask_restful import Api
from comment.utils.output import output_json

product_bp = Blueprint("product", __name__, url_prefix="/product")
product_api = Api(product_bp)

product_api.representation("application/json")(output_json)

from .product_resources import InvestProduct, ProductRateResource

product_api.add_resource(InvestProduct, "/product_list", endpoint="product_list")
product_api.add_resource(ProductRateResource, "/product_rate_list", endpoint="product_rate_list")